<form id="frmPenjualan" name="frmPenjualan" method="post" action="#">
<table border="1" cellpadding="3" cellspacing="0" width="100%" style=" border-collapse: collapse;" class="record" bordercolor="#CCCCCC">
	<thead>
        <tr style="background-color:#000000; color:#FFF;" align="center">
            <td colspan="7" height="25">PILIH PRODUK</td>
        </tr>
        <tr style="background-color:#333; color:#FFF;" align="center">
            <th>&nbsp;</th>
            <th>Kode Barang</th>
            <th>Nama Barang</th>
            <th>Kategori</th>
            <th>Stok Awal</th>
            <th>Stok Akhir</th>
        </tr>
    </thead>
    <tbody>
	<?php if(count($data_array)>0){ ?>
        {data_array}
            <tr class="cellDefault">
            	<td><input type="checkbox" id="chkitem[]" value="{kodedetailbarang}" /></td>
                <td>{kodedetailbarang}</td>
                <td>{itemname}</td>
                <td>{itemcategory}</td>
                <td>{stokawal}</td>
                <td>{stokakhir}</td>
            </tr>
        {/data_array}        
    <?php } else{
            echo "<tr>";
            echo "<td colspan='9' style='text-align:center;color:red;'>No Data To Display</td>";
            echo "</tr>";
    } ?>
    </tbody>
</table>
<input type="submit" value="Submit" title="Submit" />
</form>